package com.mysoft.gfyx.marketdevelop.controller;

import com.mysoft.framework.modeling.LabelDataController;
import com.mysoft.framework.modeling.dto.LabelStyleConfig;
import com.mysoft.framework.rpc.annotation.PubService;
import com.mysoft.framework.rpc.contants.RequestPrefix;
import com.mysoft.gfyx.marketdevelop.service.LabelService;
import io.swagger.v3.oas.annotations.tags.Tag;

import javax.annotation.Resource;
import java.util.List;

@PubService(value = "/advanceSearchOpptyPurchaseLabelData", prefix = RequestPrefix.API)
@Tag(name = "高级搜索找商机-动态标签-api")
public class AdvanceSearchOpptyPurchaseLabelDataController extends LabelDataController {
    @Resource
    private LabelService labelService;

    @Override
    protected List<LabelStyleConfig> loadData(String values) {
        return labelService.loadLabelFromCommaString(values);
    }
}
